package cn.bone.springcloud.service;

import cn.bone.springcloud.service.impl.PaymentFallbackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
@FeignClient(name = "consul-provider-consul-hystrix-payment", fallback = PaymentFallbackServiceImpl.class)
public interface IPaymentService {

    @RequestMapping("/paymentInfo/success/{id}")
    String paymentInfoSuccess(@PathVariable("id") Integer id);


    @RequestMapping("/paymentInfo/timeout/{id}")
    String paymentInfoTimeout(@PathVariable("id") Integer id);


}
